{% extends base_template|default:"base.html" %}
{% load i18n %}
<html>
<head>
    <title>gne</title>
	
</head>
{% block content %}
<div align="center"><h2>Catalog</h2></div>
<table><td><table>
	
		<tr><td><b>Lab Work :</b></td>
 	</tr>

{% if material %}
    {% for materials in material %}	

<tr>
	<td><a class='open' href="{{ LOCAL_URL }}/automation/tcc/rate/hello/?id={{ materials.id }}">{{materials.name}}</a></td>
</tr>
	
	{% endfor %}
{% endif %}</td>
<tr><td><b>Field Work :</b></td>
 	</tr>
{% if field %}
    {% for materials in field %}	

<tr>
	{% if materials.id == mat.id %}
	<td bgcolor=#00FF00><a class='open' href="{{ LOCAL_URL }}/automation/tcc/rate/hello/?id={{ materials.id }}">{{materials.name}}</a></td>
	{% else %}
	<td><a class='open' href="{{ LOCAL_URL }}/automation/tcc/rate/hello/?id={{ materials.id }}">{{materials.name}}</a></td>
	{% endif %}
</tr>
	
	{% endfor %}
{% endif %}</td>
    
</table>
</td>
	<td ALIGN=RIGHT VALIGN=TOP>
		<table  >
			<tr><td>Rate List for {{mat.name}}</td>
				<td><img src="{{MEDIA_URL}}/{{mat.image}}" height="80" width="90" align="center" border="2"></td></tr>
		</table>
				<table border="1" bordercolor="#e6e6e6" >	<tr>
		
		<td><b> <font color="#76B900">{{mat.name}}</font></b></td>
		
		<td><b>Quantity</b></td>
		
		<td><b>Cost</b></td>
		
 	</tr></font>
{% if test %}
    {% for tests in test %}
	<tr>
			
			<td>{{tests.name}}</a> </td>
			
			<td>{{tests.quantity}} {{tests.unit}}</a> </td>
			
			<td>{{tests.cost}}</a> </td>
</tr>
        {% endfor %}
{%endif %}
</table> 
			</td>
</table>
  

</html>
{% endblock %}

